GNU Radio's FUNCUBE Package
fcdpp_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2020 dl1ksv.
4 *
5 * SPDX-License-Identifier: GPL-3.0-or-later
6 */
7
8#ifndef INCLUDED_FUNCUBE_FCDPP_IMPL_H
9#define INCLUDED_FUNCUBE_FCDPP_IMPL_H
10
11#include <gnuradio/audio/source.h>
12#include <gnuradio/logger.h>
13#include <gnuradio/prefs.h>
14#include <funcube/fcdpp.h>
16
17
18namespace gr {
19namespace funcube {
20
22{
23private:
24 gr::audio::source::sptr fcd; /*!< The audio input source */
25 fcdpp_control::sptr fcd_control_block; /*!< The fcd control block */
26 double d_freq_req; /*!< The latest requested frequency in Hz */
27 double d_freq_corr;
28 int d_unit;
29 gr::logger_ptr d_logger;
30
31public:
32 fcdpp_impl(const std::string device_name, int unit);
34 /* Public API functions documented in include/funcube/fcdproplus.h */
35 void set_freq(double freq) override;
36 void set_lna(int gain) override;
37 void set_mixer_gain(int gain) override;
38 void set_freq_corr(double ppm) override;
39 void set_if_gain(int gain) override;
40};
41
42} // namespace funcube
43} // namespace gr
44
45#endif /* INCLUDED_FUNCUBE_FCDPP_IMPL_H */
#define FUNCUBE_API
Definition api.h:19
std::shared_ptr< fcdpp_control > sptr
Definition fcdpp_control.h:25
void set_freq(double freq) override
Set frequency with resolution defined by unit.
fcdpp_impl(const std::string device_name, int unit)
void set_if_gain(int gain) override
Set If gain.
void set_mixer_gain(int gain) override
Switches mixer gain onf/off.
void set_lna(int gain) override
Switches the LNA on/off.
void set_freq_corr(double ppm) override
Set new frequency correction.
Funcube Pro+ Dongle source block.
Definition fcdpp.h:31
Definition fcd.h:15
Definition fcd.h:14